package com.example.service.impl;

import org.apache.dubbo.config.annotation.DubboService;
import org.example.model.Student;
import org.example.service.studentService;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@DubboService(interfaceClass = studentService.class)
public class StudentImpl implements studentService {
    @Override
    public List<Student> getAllStudents() {
        ArrayList<Student> students = new ArrayList<>();
        Student student = new Student();
        student.setName("李亮");
        student.setAge(10);
        student.setGender("男");
        students.add(student);
        System.out.println(students);
        return students;
    }
}
